<!--
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-09-12 13:43:30
 * @LastEditors: 卡卡 1071780426@qq.com
 * @LastEditTime: 2023-11-15 11:45:36
 * @FilePath: \mould\src\views\QualityGridManage\BehaViorManage\quality-G-R-Manage\onlineRecordWork\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="page_detail" id="page_detail">
      <TableLyout :treelength="treelength">
        <template v-slot:treebox>
          <div class="structureTree_title">
            <div>组织机构</div>
          </div>
          <tree
            :treeData="treeData"
            :checkData="checkData"
            nodeKey="fCompanyid"
            @getTreeInfo="handleNodeClick"
            :defaultProps="defaultProps"
          >
          </tree>
        </template>
        <template v-slot:breadcrumb>
          <div>
            <el-breadcrumb :title="showName"></el-breadcrumb>
          </div>
        </template>
        <template v-slot:serchbox>
          <publicForm
            ref="publicForm"
            @yj_searchForm="yj_searchForm"
            lableWidth="110px"
            :formObj="searchObj"
            :formData="getList"
            @selectChange="selectTime"
          >
          </publicForm>
        </template>
        <template v-slot:btnbox>
          <el-button
            :disabled="item.disabled"
            type="primary"
            v-for="(item, index) in btnObj"
            :key="index"
            @click="getBtnName(item.fEncode, item.fOrder)"
            >{{ item.fFullname }}</el-button
          >
        </template>
        <template v-slot:tabcom>
          <div class="tableInfo">
            <tableData
              :page="getList.page"
              :pageSize="getList.pageSize"
              height="100%"
              :config="table_config"
              :dataList="tableData"
              :loading="loading"
              @click-change="rowChange"
              :info="queryCriteriaData"
              :total="queryCriteriaData.total"
              :pageNum.sync="getList.page"
              :limit.sync="getList.pageSize"
              @pagination="yj_searchForm(getList)"
              @ClickOnLine="yj_viewForm"
            />
          </div>
        </template>
      </TableLyout>
      <custom-dialog
        @refreshList="refreshList"
        :currentRow="currentRow"
        :statusNum="statusNum"
        v-if="isShow"
        :dialogVisible="isShow"
        dialogTitle="不合格报告处理"
        @close="closeDialog"
        :modelType="getList.modelType"
        :fCompanyid="getList.fCompanyid"
        :fCompanyname="userInfo.projectId"
      ></custom-dialog>
    </div>
  </template>
  <script src="./index.js"></script>
  <style scoped lang="less">
  @import "./index.less";
  </style>
  